package com.gaoyuzhe.controller;

import com.gaoyuzhe.entities.Payment;
import com.gaoyuzhe.to.ReturnValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/payment/consul")
    public ReturnValue<String> paymentConsul(){
        return new ReturnValue<>(200,"consul ,port:" + port + "," + UUID.randomUUID());
    }
}
